<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<table>
<tr><th>ID</th><th>属性名称</th><th>颜色</th><th>操作</th></tr>
<?php if(is_array($attr)): $i = 0; $__LIST__ = $attr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr><td><?php echo ($vo["id"]); ?></td><td><?php echo ($vo["name"]); ?></td><td><div style="width:20px;height:20px;background:<?php echo ($vo["color"]); ?>"></div></td><td>[<a href="#">修改</a>][<a href="#">删除</a>]</td></tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
</body>
</html>